import type { PizzaRecipeType, PizzaType } from './types';

export const pizzaRecipes: Record<PizzaType, PizzaRecipeType> = {
  Margherita: {
    name: 'Margherita',
    ingredients: ['Dough', 'Tomato Sauce', 'Mozzarella'],
    bakeTime: 15, // 秒
    value: 50
  },
  Pepperoni: {
    name: 'Pepperoni',
    ingredients: ['Dough', 'Tomato Sauce', 'Mozzarella', 'Pepperoni'],
    bakeTime: 18, // 秒
    value: 70
  },
  Vegetarian: {
    name: 'Vegetarian',
    ingredients: ['Dough', 'Tomato Sauce', 'Mozzarella', 'Mushrooms', 'Bell Peppers'],
    bakeTime: 20, // 秒
    value: 80
  },
  MeatLovers: {
    name: 'MeatLovers',
    ingredients: ['Dough', 'Tomato Sauce', 'Mozzarella', 'Pepperoni', 'Sausage', 'Bacon'],
    bakeTime: 22, // 秒
    value: 100
  }
};

// 获取所有可用的材料
export const allIngredients = Array.from(new Set(
  Object.values(pizzaRecipes)
    .flatMap(recipe => recipe.ingredients)
));